import tensorflow as tf
import time

class Trainer(object):

    def __init__(
        self, 
        model,
        batch_size,
        n_steps,
        n_input
        ):
        init = tf.global_variables_initializer()
        with tf.Session() as sess:
            sess.run(init)
            step = 1
            while step * batch_size < training_iters:
                model.train.next_batch(batch_size)
        batch_x = batch_x.reshape((batch_size, n_steps, n_input))